package com.yycx.module.bus.provider.service;

import com.yycx.module.bus.client.entity.BusCustomRate;
import com.yycx.common.mybatis.base.service.IBaseService;
import com.yycx.module.bus.client.entity.BusOrder;
import com.yycx.module.bus.client.entity.BusOrderDetails;

/**
 * 购货方税率配置 接口
 *
 * @author flyme
 * @date 2020-08-17
 */
public interface BusCustomRateService extends IBaseService<BusCustomRate> {
    /**
     * 查询市场费率配置
     *
     * @param orderDetails
     * @param busOrder
     * @return
     */
    BusCustomRate findCustomRate(BusOrderDetails orderDetails, BusOrder busOrder);

    /**
     * 查询部门结算价格
     *
     * @param supplierId
     * @param drugsId
     * @param deptId
     * @return
     */
    BusCustomRate findByDeptId(Long supplierId, Long drugsId, Long deptId);
}
